package com.baox.agridata.synchronous.dao.shanxi;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.baox.agridata.synchronous.entity.quanguo.McSzqyxx;
import com.baox.agridata.synchronous.entity.shanxi.TBASEDesignatedPigSlaughteringCompany;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface TBASEDesignatedPigSlaughteringCompanyMapper {


    /**
     * 查询全国屠宰场数据
     *
     * @param SlaughterMid
     * @return
     */
    @DS("shanxi")
    Map getBASEDesignatedPigSlaughteringCompany(@Param("SlaughterMid") String SlaughterMid);


    /**
     * 通过id查询数据是否存在
     *
     * @param mid
     * @return
     */
    @DS("shanxi")
    Integer checkBASEDesignatedPigSlaughteringCompanyIsExist(@Param("mid") String mid);


    /**
     * 批量插入全国生猪定点屠宰场数据
     *
     * @param list
     * @return
     */
    @DS("shanxi")
    Integer batchInsertDesignatedPigSlaughteringCompany(@Param("list") List<TBASEDesignatedPigSlaughteringCompany> list);


    /**
     * 更新生猪定点屠宰场数据
     *
     * @param mcSzqyxx
     * @return
     */
    @DS("shanxi")
    Integer updateTBASEDesignatedPigSlaughteringCompany(@Param("item") McSzqyxx mcSzqyxx);
}



